import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    userInfo:[]
  },
  mutations: {
    setSession(state,payload){
      this.state.userInfo.push(payload)
    }
  },
  actions: {
    getSession(context,payload){
      context.commit('setSession',payload)
    }
  },
  modules: {
  }
})
